package com.yiibai;


import org.springframework.beans.extend.MyXmlBeanFactory;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;

public class MainApp {
	public static void main(String[] args) {

		Resource resource = new ClassPathResource("beanFactoryTest.xml");
		BeanFactory beanFactory = new MyXmlBeanFactory(resource);
		MyTestBean myTestBean = (MyTestBean) beanFactory.getBean("myTestBean");
		System.out.println(myTestBean.getTestStr());

	}

}